﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BUS_Order
/// </summary>
public class BUS_Order
{
    DAL_Order data = new DAL_Order();
    public void Order_Insert(DTO_Order obj)
    {

        try
        {
            data.Order_Insert(obj);
        }
        catch (Exception)
        {

            throw;
        }

    }
    public void Order_UpdateByAll(string Id, DTO_Order obj)
    {

        try
        {
            data.Order_UpdateByAll(Id, obj);
        }
        catch (Exception)
        {

            throw;
        }

    }

    public void Order_UpdateBySet(string Id, string Set)
    {

        try
        {
            data.Order_UpdateBySet(Id, Set);
        }
        catch (Exception)
        {

            throw;
        }

    }
    public void Order_Delete(string Id)
    {

        try
        {
            data.Order_Delete(Id);
        }
        catch (Exception)
        {

            throw;
        }

    }

    public DataTable Order_GetByAll(int Status)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Order_GetByAll(Status);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Order_GetByTop(int top, string where, string order)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Order_GetByTop(top, where, order);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Order_GetByID(string id)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Order_GetByID(id);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
}